﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IoTCM
{
    public static class Extensions
    {
        public static bool HasData(this Thing thing)
        {
            return thing.Items.Count > 0;
        }
        public static bool HasThings(this Thing thing)
        {
            return thing.Things.Count > 0;
        }
    }
}
